package factory;

import java.util.ArrayList;
import java.util.Arrays;

public abstract class Pizza {


    String name;
    String douch;
    String sauce;
    Veggies veggies[];
    Cheese cheese;
    Pepperoni pepperoni;

    ArrayList toppings = new ArrayList();

    abstract void prepare();

    public void bake() {
        System.out.println("需要烘烤25 分钟");
    }

    ;

    public void cut() {
        System.out.println("切割 披萨");
    }

    ;

    public void box() {
        System.out.println("打包披萨");

    }

    ;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDouch() {
        return douch;
    }

    public void setDouch(String douch) {
        this.douch = douch;
    }

    public String getSauce() {
        return sauce;
    }

    public void setSauce(String sauce) {
        this.sauce = sauce;
    }

    public ArrayList getToppings() {
        return toppings;
    }

    public void setToppings(ArrayList toppings) {
        this.toppings = toppings;
    }

    @Override
    public String toString() {
        return "Pizza{" +
                "name='" + name + '\'' +
                ", douch='" + douch + '\'' +
                ", sauce='" + sauce + '\'' +
                ", veggies=" + Arrays.toString(veggies) +
                ", cheese=" + cheese +
                ", pepperoni=" + pepperoni +
                ", toppings=" + toppings +
                '}';
    }
}
